//
//  HappyChildrenTabBarController.h
//  HappyChildren
//
//  Created by WillyZhao on 2016/12/16.
//  Copyright © 2016年 WillyZhao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HCTabBarView,HappyChildrenTabBarController;

@protocol TabBarViewDelegate <NSObject>

-(void)tabBarSelectedView:(HappyChildrenTabBarController *)tabBarView indePath:(NSInteger)index;

@end

@interface HappyChildrenTabBarController : UIView {
    NSArray *tabsArray_;
    __unsafe_unretained id <TabBarViewDelegate> delegate;
}

@property (nonatomic, strong) NSArray *tabsArray;

@property (nonatomic, assign) id<TabBarViewDelegate> delegate;

-(void)selectedIndexPath:(NSInteger)index;

@end




@interface HCTabBarView : UIView {
    BOOL selected_;
    NSString *tabBarTitle;
}

@property (nonatomic, weak) id target;

@property (nonatomic, assign) SEL targetSel;

@property (nonatomic, readwrite) BOOL selected;                     //选中状态

@property (nonatomic, strong) UIButton *tabBarBtn;

@property (nonatomic, strong) NSString *nomalImageName;             //普通状态图片

@property (nonatomic, strong) NSString *selectImageName;            //选中状态图片

@property (nonatomic, strong) UIImageView *showImage;               //显示图片（高亮之间的切换）

@end
